<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2018/7/4
 * Time: 14:44
 */
namespace app\admin\validate;

use think\Validate;

class Dispatch extends Validate
{
    protected $rule =   [
        'tel'  => 'require',
        'address'     =>'require',
        'name'     =>'require',
    ];
    protected $message  =   [
        'tel.require'      => '电话不能为空',
        'address.require'      => '地址不能为空',
        'name.require'      => '联系人不能为空',
    ];
}